HTTP Methods
(QW.HTTPMethodsACL)
Overview
This is a private feature developed by Qwilt.
This feature is used to set the HTTP methods available to clients, to enable a client payload, and to set the maximum payload size (in bytes).
Example
This example enables the GET, POST, and PUT methods; it allows a client payload of up to ten million bytes:
{
"generic-metadata-type": "MI.PrivateFeature.Qwilt.QW.HttpMethodsAcl",
"generic-metadata-value": {
"allowed-methods": [
"GET",
"POST",
"PUT"
],
"allow-client-payload": true,
"client-payload-max-size": 10000000
}
}
Supported Properties
Field | Valid Values | Description |
---|---|---|
allowed-methods | POST, PUT, GET, DELETE, OPTIONS, HEAD | An array of strings specifying permitted HTTP methods |
allow-client-payload | true, false | A Boolean indicating if client request bodies are permitted. |
client-payload-max-size | any integer (bytes) | An integer specifying the maximum allowed payload size in bytes, if allow-client-payload is true . |
info
When the POST method is enabled, POST requests are not stored in the CDN's cache. They are proxied to the origin server for handling.